function Conditions = parameterfunspecial(n,Pv)
Conditions= zeros(n+3,1) ;
Q=0.5*ones(1,n);
% Q=0*ones(1,n);
% Q(1)=1;
for i=1:n-1
    Conditions(i)= -Pv(i)*Q(i)+Pv(i)+Pv(i+1)*Q(i+1) ;
end    
Conditions(n) =-Pv(n)*Q(n)+Pv(n)+Pv(1)*Q(1);
Conditions(n+1) = 0;
for i=1:n
    Conditions(n+1)= Conditions(n+1) -Pv(i)*Q(i);
end
Conditions(n+1) = Conditions(n+1) + 1;
Conditions(n+2) = Pv(1)*Q(1);
Conditions(n+3)=1;
end
